#pragma once
struct ConnClient
{
    ConnClient(int sockfd, uint16_t port, const std::string ip)
        : sockfd_(sockfd), port_(port), ip_(ip)
    {
    }
    int sockfd_;
    uint16_t port_;
    std::string ip_;
};

struct Task
{
    Task(void (*func)(ConnClient *), ConnClient *args)
        : args_(args), func_(func)
    {
    }

    ~Task()
    {
        delete args_;
    }
    ConnClient *args_;
    void (*func_)(ConnClient *); // 任务函数指针
};